#include "ItemPhysics.h"




void ItemPhysics::update()
{
	_data->type = _ID_ITEM_PACKAGE;
	_data->counter += 0.15;
	_data->rect->X += 3 * _data->getDirection();
	_data->rect->Y = 50*sin(_data->counter) + _data->getBaseY();
}

ItemPhysics::ItemPhysics(ItemData* data)
{
	_data = data;
}
